var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
async function connect(){
    let db =  await MongoClient.connect(url,{useNewUrlParser:true});
    return db
}
module.exports = connect